@echo off
set php56_home=../php/php-5.6.27-nts
set php70_home=../php/php-7.0.12-nts
set php71_home=../php/php-7.1.26-nts
set php73_home=../php/php-7.3.27-nts
set php74_home=../php/php-7.4

REM Windows 下无效
REM set PHP_FCGI_CHILDREN=5

REM 每个进程处理的最大请求数，或设置为 Windows 环境变量
set PHP_FCGI_MAX_REQUESTS=1000

echo Starting PHP FastCGI...
RunHiddenConsole %php56_home%/php-cgi.exe -b 127.0.0.1:9056 -c %php56_home%/php.ini
RunHiddenConsole %php70_home%/php-cgi.exe -b 127.0.0.1:9070 -c %php70_home%/php.ini
RunHiddenConsole %php71_home%/php-cgi.exe -b 127.0.0.1:9071 -c %php71_home%/php.ini
RunHiddenConsole %php73_home%/php-cgi.exe -b 127.0.0.1:9073 -c %php73_home%/php.ini
RunHiddenConsole %php74_home%/php-cgi.exe -b 127.0.0.1:9074 -c %php74_home%/php.ini
 